<%@ page contentType="text/html; charset=utf-8"%>
<%@ page
	import="org.skywind.WindSearch.util.*,org.skywind.WindSearch.Beans.*,java.util.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<c:if test="${!guest.succeed}">
<jsp:include page="notresult.jsp"></jsp:include>
</c:if>
<c:if test="${guest.succeed}">
	<DIV style="margin: 10px; width: 100%;">
		${talk.adxfilter }:
		<select name="select">
			<option value="1">
				${talk.adxAll }
			</option>
			<option value="2">
				${talk.bigpic }
			</option>
			<option value="3">
				${talk.mpic }
			</option>
			<option value="4">
				${talk.spic }
			</option>
		</select>
	</DIV>

	<table width="500" border="0" cellpadding="0" cellspacing="0"
		class="imageistable"
		style="border-top-color: #FFFFFF; border-bottom-color: #FFFFFF; margin: 10px">
		<%
			Guest st = (Guest) request.getSession().getAttribute("guest");
				List list = st.getCurrPageList();
				int size = 5;
				for (int i = 0; i < list.size(); i += size) {
					int end = i + size;
					end = end > list.size() ? list.size() : end;
					List<PicBean> rows = list.subList(i, end);
					pageContext.setAttribute("rows", rows);
		%>
		<tr>
			<c:forEach items="${rows}" var="Bean">
				<td class="imageisstyle" style="padding: 10px">
					<div align="center" class="imagesDiv" style="width: 200px; height: 160px">
						<a target="_blank" href="${Bean.urlStr }"><img
								src="snapshot?host=${Bean.host }&robot=${Bean.robot }&id=${Bean.sourceid }"
								alt="${Bean.title}" style="margin-top: 15px; border: 0px;" /> </a>
					</div>
					<div
						style="width: 200px; height: 40px; top: 240px; font-size: 12px;">
						<center>
							<span class=title style="font-size: 12px"><a
								target="_blank" href="${Bean.refer}">${Bean.title}</a> </span>
							<br />
							<span style="color: gray;">${Bean.dim.width} x ${Bean.dim.height } - ${Bean.sizeStr} - ${Bean.type}</span>
							<br />
							<span style="color: green">${Bean.url.host}</span>
						</center>
					</div>
				</td>
			</c:forEach>
		</tr>
		<%
			}
		%>
	</table>
</c:if>